#ifndef __SMSCOMMAND_H
#define __SMSCOMMAND_H

#include  "cfg_main.h"

#define MAX_SMS_NUM         35
#define SMS_MAX_SIZE        140
#define SMS_FRAME_SIZE      400
#define SMS_RESEND_TIME     3
#define INDEX_BUFF_SIZE     10

//PDU_SMS_RECEIVE gSMSReceiveStruct;
//PDU_SMS_SEND	gSMSSendStruct;

//INT8U gSMSCAddress[15];
//INT8U gSendAddress[15];
//INT8U gMessageStordPlace;
//INT8U gWrongFormat;
//INT8U gIs8bitsForm;
//INT8U UnsentSMSBuff[1000];

__packed typedef struct
{
    INT16U smseq : 12;
    INT16U smlseq : 3;
    INT16U smfin : 1;
}SMSSendType;

INT8U SendSMS(INT8U *SMSSendBuff, INT16U SMSlength, INT8U *phoneNo, INT8U *pSMSCAddress);
INT8U DelAllSMS(void);
INT8U ListAllSMS(void);
INT8U WriteSMSC(INT8U *pBuff);
INT8U ReadSMSC(INT8U *pBuff);
INT8U SMSGetLCFrame(INT8U index, INT8U *pframe, INT32 *psize);

#endif
